<template>
	<view class="color">
		<view class="Fonttextbox louis-padding-lf-0 louis-relative">
			<view class="Fonttext louis-font-pixel louis-absolute ">

			</view>
			<louis-back>

			</louis-back>
			<image class="louis-w-max " :src="imgsrc" mode="widthFix"></image>
		</view>




		<view class="coloritem">
			<view >
				<view class="Basics Basicsred louis-center">
					Louis-UI是一套类名驱动的样式库,本义上就是一个SCSS文件。
				</view>
				<view style="padding: 10rpx 0rpx;" class="Basics Basicsrblue">
					<view class="louis-center louis-font-pixel">
					在页面中引入scss文件louisui.scss即可
					</view>
				</view>
				
				<view class="Basics ">
					<louis-view style="margin: 10rpx 20rpx;" class="louis-radius-10rpx" color='#ccc'>
				
						<view class="louis-padding-10rpx">
							{{scssleft}}
						</view>
						<view class="louis-padding-10rpx">
							{{scss}}
						</view>
						<view class="louis-padding-10rpx">
							{{scssright}}
						</view>
						
					</louis-view>
				
				</view>
				
				<view style="padding: 10rpx 0rpx;" class="Basics Basicsrblue">
					<view class="louis-center louis-font-pixel">
					使用方法更加简单，只需把类名加到任意HTML标签
					</view>
				</view>
				
				<view class="Basics ">
					<louis-view style="margin: 10rpx 20rpx;" class="louis-radius-10rpx" color='#ccc'>
				
						<view class="louis-padding-10rpx">
							{{view}}
						</view>
						<view class="louis-padding-10rpx">
							{{div}}
						</view>
						<view class="louis-padding-10rpx">
							{{i}}
						</view>
						
					</louis-view>
				
				</view>

			


				<view >
					<view class="Basics Basicsred louis-center">组件Vue可以使用组件louis-view
					</view>
					<view class="Basics Basicsrblue louis-center">
						<view class="louis-center louis-font-pixel">
							<text>{{louisview}}</text>
						</view>
					</view>

					<view class="Basics ">




						<louis-view style="margin: 10rpx 20rpx;" class="louis-radius-10rpx" color='#ccc'>

							<view class="louis-padding-10rpx">
								{{louisitem}}标签,
							</view>
							<view class="louis-padding-10rpx">
								color,bg目前支持HEX颜色格式,
							</view>
							<view class="louis-padding-10rpx">
								position-定位方式，top,left,right,bottom-表示方向
							</view>
							<view class="louis-padding-10rpx">
								size-字体大小,color-字体颜色，bg-背景颜色
							</view>
							<view class="louis-padding-10rpx">
								在main.js全局引入
							</view>
							
							<view class="louis-padding-10rpx">
								import louisView from './louis-ui/components/louis-view/louis-view.vue'
													
							</view>
							<view class="louis-padding-10rpx">
								Vue.component('louis-view', louisView)
							</view>
						</louis-view>

					</view>

				</view>


			</view>
		</view>
         <view @tap="getsetClipboardData" class="louis-font-28rpx Basics Basicsred louis-center">
         	点击复制码云地址
         </view>
       <louis-view p="20rpx">
			
		</louis-view>
	</view>
</template>





<script>
	export default {
		data() {
			return {
				view:"<view class='louis-font-30rpx' ></view>",
				div:"<div class='louis-font-30rpx' ></div>",
				i:"<i class='louis-icon-link' > ",
				scssleft:"<style lang='scss'>",
				scss:"@import '@/louis-ui/louisui.scss';",
				scssright:"</style>",
				louisitem:"<louis-view>",
				louisview: "<louis-view color='#ccc' bg='#fff'></louis-view>",
				imgsrc: "http://zons.oss-cn-shenzhen.aliyuncs.com/upload/20200720/20200720/159523118414ee22eaba297944c96afdbe5b16c65b.gif",

			};
		},
		mounted() {

		},
		methods: {
			getsetClipboardData() {
				uni.setClipboardData({
					data: 'https://gitee.com/xu_xi/Louis-UI',
					success: function() {
						uni.showToast({
							icon: 'none',
							title: '复制成功，请在网页打开'
						});
					}
				});
			}

		}
	}
</script>
<style scoped lang="less">
	.Fonttextbox {
		// height: 4000rpx;
		overflow: hidden;

	}

	.Fonttext {
		// -webkit-text-stroke: 1px #6893a0;
		position: absolute;
		z-index: 200;
		// color: rgba(255, 255, 255, 0.7);
		width: 100%;
		height: 100%;
		top: 98rpx;
		right: 200rpx;
		width: 200rpx;
		font-size: 38rpx;
		// transform:skewX(23deg);
		color: #db79a5;
		font-weight: bold;
		opacity: 0.8;
	}

	.Basics {
		color: #FFF;
		font-size: 25rpx;
		margin-bottom: 10rpx;
		margin-left: 10rpx;
		margin-right: 10rpx;
		border-radius: 10rpx;
		padding: 20rpx;
		border: 2px solid #C0C0C0;
		box-sizing: border-box;
		background-color: rgba(29, 5, 41, 0.8);
		padding-top: 15rpx;
		padding-bottom: 20rpx;

		// &:active {
		// 	background-color: rgba(206, 31, 84, 0.8);
		// }
	}

	.Basicsred {
		background-color: rgba(206, 31, 84, 0.7);
	}

	.Basicsrblue {
		background-color: rgba(64, 158, 255, 0.7);
	}

	.font {
		margin-top: 20rpx;
	}

	.coloritem {
		position: relative;
		top: 0rpx;
	}

	.colorblock {

		// font-size: 25rpx;
		display: inline-block;
		margin-left: 7rpx;
		// margin-top: 10rpx;
		width: 130rpx;
		height: 130rpx;
		border-radius: 10rpx;
		padding: 10rpx;
		box-sizing: border-box;
		margin-bottom: 10rpx;
		overflow: hidden;
	}

	.colorblock:nth-child(5n) {
		margin-right: 0rpx;
	}

	#F {
		color: #000000
	}

	.louis-bg-MD {
		// background-color: rgba(0,0,0,0.1);
		display: inline-block;
		padding: 5rpx 10rpx;

	}

	.color {
		// background-color: #222b33;
		background-image: linear-gradient(#222b33, #3d82ad);
		// background-image: none
	}
</style>
